<div class="box border blue">
    <div class="box-title">
        <h4><i class="fa fa-table"></i>新建日程{{addclip.name}}的基本信息</h4>
        <div class="tools">
            <a ng-show="InfoShow" ng-click="display(0)" class="collapse" onclick="" title="More Infomation">More</a>
            <a ng-show="!InfoShow" ng-click="display(1)" class="collapse" title="Less Infomation">Less</a>
        </div>
    </div>
    <div class="box-body">
        <table class="table table-hover">
            <thead>
            <tr>
                <th style="width:20%">日程项</th>
                <th style="width:80%">日程内容</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td style="width:20%">{{ClipKey.name}}</td>
                <td style="width:80%" ng-init="nameShow=true" ng-show="nameShow" ng-dblclick="nameShow=false;show(0)">{{addclip.name}}</td>
                <td style="width:80%"><input ng-keypress="setDirty()" id="show0" type="text" ng-show="!nameShow" ng-model="addclip.name" ng-blur="nameShow=true"> </td>
            </tr>
            <tr>
                <td>{{ClipKey.startTime}}</td>
                <td ng-init="startTShow=true" ng-show="startTShow" ng-dblclick="startTShow=false;show(1)">{{TimeShow(addclip.startTime)}}</td>
                <td><input ng-keypress="setDirty()" id="show1" type="datetime-local" ng-show="!startTShow" ng-model="addclip.startTime" ng-blur="startTShow=true"></td>
            </tr>
            <tr>
                <td>{{ClipKey.endTime}}</td>
                <td ng-init="endTShow=true" ng-show="endTShow" ng-dblclick="endTShow=false;show(2)">{{TimeShow(addclip.endTime)}}</td>
                <td><input ng-keypress="setDirty()" id="show2" type="datetime-local" ng-show="!endTShow" ng-model="addclip.endTime" ng-blur="endTShow=true"></td>
            </tr>
            <tr>
                <td>{{ClipKey.address}}</td>
                <td ng-init="addressShow=true" ng-show="addressShow" ng-dblclick="addressShow=false;show(3)">{{addclip.address}}</td>
                <td><input ng-keypress="setDirty()" id="show3" type="text" ng-show="!addressShow" ng-model="addclip.address" ng-blur="addressShow=true"></td>
            </tr>
            <tr>
                <td>{{ClipKey.level}}</td>
                <td ng-init="levelShow=true;addclip.level='主事项'" ng-show="levelShow" ng-dblclick="levelShow=false;show(4)">{{addclip.level}}</td>
                <td>
                    <select class="col-md-5" id="show4" ng-show="!levelShow" ng-model="addclip.level" ng-blur="levelShow=true" ng-keypress="setDirty()"
                            ng-options="option.value as option.key for option in level_array">
                    </select>
                </td>
            </tr>
            <tr>
                <td>{{ClipKey.status}}</td>
                <td ng-init="statusShow=true;addclip.status='CONFIRM'" ng-show="statusShow" ng-dblclick="statusShow=false;show(100)">{{status_show(addclip.status)}}</td>
                <td>
                    <select class="col-md-5" id="show100" ng-show="!statusShow" ng-model="addclip.status" ng-blur="statusShow=true" ng-keypress="setDirty()"
                            ng-options="option.value as option.key for option in status_array">
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.actionRemark}}</td>
                <td ng-init="actionRemarkShow=true" ng-show="actionRemarkShow" ng-dblclick="actionRemarkShow=false;show(5)">{{addclip.actionRemark}}</td>
                <td><input ng-keypress="setDirty()" id="show5" type="text" ng-show="!actionRemarkShow" ng-model="addclip.actionRemark" ng-blur="actionRemarkShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.category}}</td>
                <td ng-init="categoryShow=true" ng-show="categoryShow" ng-dblclick="categoryShow=false;show(6)">{{addclip.category}}</td>
                <td>
                    <select id="show6" ng-show="!categoryShow" ng-model="addclip.category" ng-blur="categoryShow=true" ng-keypress="setDirty()">
                    </select>
                </td>
            </tr>
            <!--<tr ng-show="!InfoShow">
                <td>{{ClipKey.individualTaskId}}</td>
                <td ng-init="IndividualTaskIdShow=true" ng-show="IndividualTaskIdShow" ng-dblclick="IndividualTaskIdShow=false;show(7)">{{addclip.individualTaskId}}</td>
                <td>
                    <input ng-keypress="setDirty()" id="show7" type="text" ng-show="!IndividualTaskIdShow" ng-model="addclip.individualTaskId" ng-blur="IndividualTaskIdShow=true" list="TaskIdSelect">
                    <datalist id="TaskIdSelect">
                        <option ng-repeat="option in tasks" value="{{option.id}}">{{option.name}}</option>
                    </datalist>
                </td>
            </tr>-->
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.isDelayed}}</td>
                <td ng-init="isDelayedShow=true" ng-show="isDelayedShow" ng-dblclick="isDelayedShow=false;show(8)">{{judge_show(addclip.isDelayed)}}</td>
                <td>
                    <select id="show8" type="boolean" ng-show="!isDelayedShow" ng-model="addclip.isDelayed" ng-blur="isDelayedShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.isFixed}}</td>
                <td ng-init="isFixedShow=true" ng-show="isFixedShow" ng-dblclick="isFixedShow=false;show(9)">{{judge_show(addclip.isFixed)}}</td>
                <td>
                    <select id="show9" type="boolean" ng-show="!isFixedShow" ng-model="addclip.isFixed" ng-blur="isFixedShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.isImportant}}</td>
                <td ng-init="isImportantShow=true" ng-show="isImportantShow" ng-dblclick="isImportantShow=false;show(10)">{{judge_show(addclip.isImportant)}}</td>
                <td>
                    <select  class="col-md-5" id="show10" type="boolean" ng-show="!isImportantShow" ng-model="addclip.isImportant" ng-blur="isImportantShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.isPrincipal}}</td>
                <td ng-init="isPrincipalShow=true" ng-show="isPrincipalShow" ng-dblclick="isPrincipalShow=false;show(11)">{{judge_show(addclip.isPrincipal)}}</td>
                <td>
                    <select class="col-md-5" id="show11" type="boolean" ng-show="!isPrincipalShow" ng-model="addclip.isPrincipal" ng-blur="isPrincipalShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.isSecret}}</td>
                <td ng-init="isSecretShow=true" ng-show="isSecretShow" ng-dblclick="isSecretShow=false;show(12)">{{judge_show(addclip.isSecret)}}</td>
                <td>
                    <select class="col-md-5" id="show12" type="boolean" ng-show="!isSecretShow" ng-model="addclip.isSecret" ng-blur="isSecretShow=true" ng-keypress="setDirty()">
                        <option value="1">是</option>
                        <option value="0">否</option>
                    </select>
                </td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.linkedActivityId}}</td>
                <td ng-init="linkedActivityIdShow=true" ng-show="linkedActivityIdShow" ng-dblclick="linkedActivityIdShow=false;show(13)">{{addclip.linkedActivityId}}</td>
                <td><input ng-keypress="setDirty()" id="show13" type="text" ng-show="!linkedActivityIdShow" ng-model="addclip.linkedActivityId" ng-blur="linkedActivityIdShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.linkedActivityType}}</td>
                <td ng-init="linkedActivityTypeShow=true" ng-show="linkedActivityTypeShow" ng-dblclick="linkedActivityTypeShow=false;show(14)">{{addclip.linkedActivityType}}</td>
                <td><input ng-keypress="setDirty()" id="show14" type="text" ng-show="!linkedActivityTypeShow" ng-model="addclip.linkedActivityType" ng-blur="linkedActivityTypeShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.organizationId}}</td>
                <td ng-init="organizationIdShow=true" ng-show="organizationIdShow" ng-dblclick="organizationIdShow=false;show(15)">{{addclip.organizationId}}</td>
                <td><input ng-keypress="setDirty()" id="show15" type="text" ng-show="!organizationIdShow" ng-model="addclip.organizationId" ng-blur="organizationIdShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.ownerId}}</td>
                <td ng-init="ownerIdShow=true" ng-show="ownerIdShow" ng-dblclick="ownerIdShow=false;show(16)">{{addclip.ownerId}}</td>
                <td><input ng-keypress="setDirty()" id="show16" type="text" ng-show="!ownerIdShow" ng-model="addclip.ownerId" ng-blur="ownerIdShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.previewTime}}</td>
                <td ng-init="previewTimeShow=true" ng-show="previewTimeShow" ng-dblclick="previewTimeShow=false;show(17)">{{addclip.previewTime}}</td>
                <td><input ng-keypress="setDirty()" id="show17" type="text" ng-show="!previewTimeShow" ng-model="addclip.previewTime" ng-blur="previewTimeShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.relatedCompany}}</td>
                <td ng-init="relatedCompanyShow=true" ng-show="relatedCompanyShow" ng-dblclick="relatedCompanyShow=false;show(18)">{{addclip.relatedCompany}}</td>
                <td><input ng-keypress="setDirty()" id="show18" type="text" ng-show="!relatedCompanyShow" ng-model="addclip.relatedCompany" ng-blur="relatedCompanyShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.relatedContact}}</td>
                <td ng-init="relatedContactShow=true" ng-show="relatedContactShow" ng-dblclick="relatedContactShow=false;show(19)">{{addclip.relatedContact}}</td>
                <td><input ng-keypress="setDirty()" id="show19" type="text" ng-show="!relatedContactShow" ng-model="addclip.relatedContact" ng-blur="relatedContactShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.relatedOpp}}</td>
                <td ng-init="relatedOppShow=true" ng-show="relatedOppShow" ng-dblclick="relatedOppShow=false;show(20)">{{addclip.relatedOpp}}</td>
                <td><input ng-keypress="setDirty()" id="show20" type="text" ng-show="!relatedOppShow" ng-model="addclip.relatedOpp" ng-blur="relatedOppShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.remark}}</td>
                <td ng-init="remarkShow=true" ng-show="remarkShow" ng-dblclick="remarkShow=false;show(21)">{{addclip.remark}}</td>
                <td><input ng-keypress="setDirty()" id="show21" type="text" ng-show="!remarkShow" ng-model="addclip.remark" ng-blur="remarkShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.remind}}</td>
                <td ng-init="remindShow=true" ng-show="remindShow" ng-dblclick="remindShow=false;show(22)">{{addclip.remind}}</td>
                <td><input ng-keypress="setDirty()" id="show22" type="text" ng-show="!remindShow" ng-model="addclip.remind" ng-blur="remindShow=true"></td>
            </tr>
            <tr ng-show="!InfoShow">
                <td>{{ClipKey.who}}</td>
                <td ng-init="whoShow=true" ng-show="whoShow" ng-dblclick="whoShow=false;show(23)">{{addclip.remind}}</td>
                <td><input ng-keypress="setDirty()" id="show23" type="text" ng-show="!whoShow" ng-model="addclip.whoShow" ng-blur="whoShow=true"></td>
            </tr>
            </tbody>
        </table>
        <span class="input-group-btn">
             <a class="btn btn-warning" ng-click="BackToTaskList()">返回任务列表</a>
        </span>
        <span class="input-group-btn">
             <a class="btn btn-success" ng-click="AddToDatabase()">保存</a>
        </span>
    </div>
</div>

